<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div>
    <div ref="test">内容</div>
    <button @click="changeTest">修改内容</button>
  </div>
</template>

<script>
export default {
  data(){
    return {
      
    }
  },
  methods:{
    changeTest(){
      this.$refs.test.innerHTML='Hello fangfang'
    }
  }
}
</script>